﻿using System;
using System.Collections.Generic;

namespace SharpSqlAnalyzer.nodes.mdx
{
	// Token: 0x020003E5 RID: 997
	public class TMdxKeySegment : TParseTreeNode, IMdxIdentifierSegment
	{
		// Token: 0x0600279F RID: 10143 RVA: 0x0033BB6C File Offset: 0x00339D6C
		public override void init(object subSegmentList)
		{
			this.subSegmentList = (List<TMdxNameSegment>)subSegmentList;
			if (this.subSegmentList.Count > 0)
			{
				base.startToken = this.subSegmentList[0].startToken;
				base.endToken = this.subSegmentList[this.subSegmentList.Count - 1].endToken;
			}
		}

		// Token: 0x170008E8 RID: 2280
		// (get) Token: 0x060027A0 RID: 10144 RVA: 0x0033BBCD File Offset: 0x00339DCD
		public virtual EMdxQuoting Quoting
		{
			get
			{
				return EMdxQuoting.KEY;
			}
		}

		// Token: 0x170008E9 RID: 2281
		// (get) Token: 0x060027A1 RID: 10145 RVA: 0x0033BBD0 File Offset: 0x00339DD0
		public virtual string Name
		{
			get
			{
				return this.ToString();
			}
		}

		// Token: 0x170008EA RID: 2282
		// (get) Token: 0x060027A2 RID: 10146 RVA: 0x0033BBD8 File Offset: 0x00339DD8
		public virtual List<TMdxNameSegment> KeyParts
		{
			get
			{
				return this.subSegmentList;
			}
		}

		// Token: 0x04001DD5 RID: 7637
		private List<TMdxNameSegment> subSegmentList;
	}
}
